package com.ny.zhifu;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int money = 250;
        System.out.println(money);
        System.out.println("你需支付金额"+money);
        System.out.println("请选择支付方式：1.银行卡 2.微信 3.没钱");
        Scanner scanner = new Scanner(System.in);
        switch (scanner.nextInt()){
            case 1:
                Pay yinghang = new Yinghang();
                yinghang.pay(money);
                break;
            case 2:
                Pay wx = new Wx();
                wx.pay(money);
                break;
            case 3:
                System.out.println("没钱一边儿凉快去！、皿/");
        }
    }
}
